<?php

namespace App\Http\Middleware;

use Closure;
use Illuminate\Http\Request;

use SiteService;
use Auth;

class SystemMiddleware
{
    public function handle(Request $request, Closure $next)
    {
        if (Auth::user()->isSuperAdmin) {
            return $next($request);
        }
        abort(403, '没有访问权限');
    }
}
